package com.yy.service;

import com.yy.dto.OrdersPageQueryDTO;
import com.yy.dto.OrdersPaymentDTO;
import com.yy.dto.OrdersSubmitDTO;
import com.yy.result.PageResult;
import com.yy.vo.OrderPaymentVO;
import com.yy.vo.OrderSubmitVO;
import com.yy.vo.OrderVO;

public interface OrderService {


    OrderSubmitVO submit(OrdersSubmitDTO dto);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    PageResult selectHistory(OrdersPageQueryDTO dto);

    OrderVO getOrderDetail(Long id);

    void cancelOrder(Long id);

    void repetition(Long id);
}